﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="NavigationModeView.aspx.cs" Inherits="NavigationModeView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="ModuleContent">
        <ul class="NavigationButtons">
            <li>
                <asp:LinkButton ID="lbAddNew" CssClass="navigation_button" Text="Add New" runat="server" PostBackUrl="~/navigationmodeedit.aspx?m=liNavigationMode" />
            </li>
        </ul>
    </div>
    <asp:GridView ID="NavigationModeGirdView" CssClass="skineedgrid" runat="server" DataSourceID="NavigationModeDS"
        AutoGenerateColumns="false" Width="75%" DataKeyNames="RecordID"  AllowSorting="true" >
        <Columns>
            <asp:BoundField DataField="RecordID" HeaderText="RecordID" Visible="False" />
            <asp:BoundField DataField="ID" HeaderText="NavigationModeID" Visible="False" />
            <asp:BoundField DataField="Name" HeaderText="Title"  SortExpression="Name"/>
            <asp:TemplateField>
                <ItemTemplate>
                    <a href="navigationmodehistory.aspx?id=<%#Eval("ID") %>&m=liNavigationMode">Hitory</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>

    <asp:ObjectDataSource ID="NavigationModeDS" runat="server" SortParameterName="sortBy" SelectMethod="GetNavigationModes" TypeName="DAL.DBManagers.NavigationModesManager"></asp:ObjectDataSource>
</asp:Content>

